<script>
import moment from 'moment'
export default {
  name: "MyDateTime",
  props: {
    element: Object,
    value:Object
  },
  render(h, context) {
    let data = moment(this.value[this.element.vModel]).format(this.element.format)
    return h('span',data)
  }

}
</script>

<style scoped>

</style>
